package diamondRingEntity;

/**
 * 用户类
 */
public class User {
    private int id;
    private String name;
    private String pwd;
    private String email;

    public User() {
    }

    //登录构造函数
    public User(String pwd, String email) {
        this.pwd = pwd;
        this.email = email;
    }

    public User(String email){
        this.email = email;
    }

    public User(String name, String pwd, String email) {
        this.name = name;
        this.pwd = pwd;
        this.email = email;
    }

    public int getId() {
        return id;
    }
    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }
    public void setName(String name) {
        this.name = name;
    }

    public String getPwd() {
        return pwd;
    }
    public void setPwd(String pwd) {
        this.pwd = pwd;
    }

    public String getEmail() { return email; }
    public void setEmail(String email) {
        this.email = email;
    }
}
